-- GENERATED SPELL FOR [Kurzen Witch Doctor] --


function spell0_942(pUnit, Event) --@Purge,n/a--
pUnit:FullCastSpellOnTarget(370,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_942', 553, 1)
end

function spell1_942(pUnit, Event) --@Searing Totem,Self--
pUnit:FullCastSpellOnTarget(6364,pUnit)
pUnit:RegisterEvent('Sorts_942', 40252, 1)
end

function Sorts_942(pUnit, Event)
local choix_sorts_942 = math.random(0, 1)
if choix_sorts_942 == 0 then
pUnit:RegisterEvent('spell0_942', 1, 1)
end
if choix_sorts_942 == 1 then
pUnit:RegisterEvent('spell1_942', 1, 1)
end
end

function mob942_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_942', math.random(1500, 3000), 1)
end

function mob942_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob942_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob942_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(942, 1, 'mob942_Action')
RegisterUnitEvent(942, 2, 'mob942_Leave')
RegisterUnitEvent(942, 3, 'mob942_Kill')
RegisterUnitEvent(942, 4, 'mob942_Die')
